package edu.pku.hawk.sandbox;
public class BaseMessage {
	
	public static String UNKNOW="_UNKNOW_";
	public static String TYPE_LOCATION="LOC";
	public static String TYPE_BOOLEANSENSOR="BOLSEN";
	public static String TYPE_CONTINUOUSSENSOR="CONSEN";
	
	protected int type=AppConstant.TYPE_UNKNOWN;
	protected String id=UNKNOW;
	protected Object value=null;
	
	public int getType() {
		return type;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BaseMessage()
	{
	}
	
	public BaseMessage(int type,String id)
	{
		this.type=type;
		this.id=id;
	}
	
}
